Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error log and abort pod cleanup k8s event in controllerCleanupPod #196

Merged
merged 5 commits into from
Apr 12, 2024

Conversation

suryagupta4
Copy link
Collaborator

@suryagupta4 suryagupta4 commented Apr 10, 2024

Description

Add error log and abort pod cleanup k8s event for missing CSI Annotations and volume host connectivity validation failure.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#1216

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • make unit-test
    image

  • Installed driver with resiliency enabled, created a pod being watched by podmon. Removed the annotations on the node where pod is running, podmon aborted pod cleanup containing the newly added error log and k8s event is created.
    image
    image

  • e2e test results
    image
    Logs:
    e2e-TestControllerMode.txt

Copy link
Contributor

@adarsh-dell adarsh-dell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adarsh-dell adarsh-dell merged commit 1ab8797 into main Apr 12, 2024
7 checks passed
@suryagupta4 suryagupta4 deleted the podcleanup-error-log branch April 14, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants